<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="/fuman/js/report.js"></script>
<title>magento赞助</title>
<body class="withvernav">
<div class="bodywrapper"> {{include file='/public/leftmenu.tpl'}}
  <div class="centercontent">
    <div class="pageheader notab">
      <h1 class="pagetitle">赞助数据的统计数据导入确认</h1>
      </div>
<table cellpadding="0" cellspacing="0" border="0" class="stdtable" style="table-layout: fixed;">
<thead>
  <tr class="lbbt">
    <td width="8%" bgcolor="#FEFFF1">来源/媒介</td>
    <td width="8%" bgcolor="#FEFFF1">收入币种</td>
    <td width="10%" bgcolor="#FEFFF1">交易次数</td>
    <td width="8%" bgcolor="#FEFFF1">收入,原始货币</td>
    <td width="8%" bgcolor="#FEFFF1">导入时间段</td>
  </tr>
</thead>

<tbody >
      {{foreach from=$data item=li key=key}}
      <tr  style="cursor:pointer;">
      <td >
      	{{$li.0}}
      </td>
      <td>
      	{{$ms_income_currency}}
      </td>
      <td>
      	{{$li.8}}
      </td>
      <td>
      	{{$li.9}}
      </td>
      <td>
      	{{$timedata}}
      </td>
      </tr>
      {{/foreach}}
</tbody>
</table>
<a href="javascript:void(0)" onClick="confirm()" class="btn btn_orange btn_flag"><span>确认数据无误</span></a>
<a href="/magento/sponsor" class="btn btn_orange btn_flag"><span>数据错误重新导入</span></a>
      </div>
      </div>


<script language="javascript">
function confirm(){
	$.post("/magento/ajaxbutton?op=confirmcsv",{"jsondata":'{{$jsondata}}',"ms_income_currency":'{{$ms_income_currency}}','timedata':'{{$timedata}}'},
    function(data){
       alert('上传成功');
       document.location.href = data;
    }
  );
}
</script>